package com.atguigu.spzx.mapper;

import com.atguigu.spzx.model.dto.system.SysRoleDto;
import com.atguigu.spzx.model.entity.system.SysRole;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysRoleMapper {
    Page<SysRole> findPage(@Param(value = "dto") SysRoleDto sysRoleDto);

    void insert(SysRole sysRole);

    void update(SysRole sysRole);

    void removeById(Long id);

    List<SysRole> findAllRoles();



}
